import request from '@/utils/request'

// 汇总查询收入信息
export function collectIncomeRecordBySupervise(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/collectIncomeRecordBySupervise',
    method: 'post',
    data
  })
}

// 汇总查询支出信息
export function collectExpensesRecordBySupervise(data) {
  return request({
    url: '/bookkeeping/incomeExpenses/collectExpensesRecordBySupervise',
    method: 'post',
    data
  })
}

// 汇总查询经营利润
export function collectBusinessProfit(data) {
  return request({
    url: '/bookkeeping/expensesStats/collectBusinessProfit',
    method: 'post',
    data
  })
}

// 汇总查询总利润
export function collectTotalProfit(data) {
  return request({
    url: '/bookkeeping/expensesStats/collectTotalProfit',
    method: 'post',
    data
  })
}

// 汇总查询流水账
export function collectJournalBySupervise(data) {
  return request({
    url: '/bookkeeping/expensesStats/collectJournalBySupervise',
    method: 'post',
    data
  })
}

// 汇总查询债权债务
export function collectCreditDebtInfoBySupervise(data) {
  return request({
    url: '/bookkeeping/creditDebt/collectCreditDebtInfoBySupervise',
    method: 'post',
    data
  })
}

// 汇总查询固定资产
export function collectFixedAssetBySupervise(data) {
  return request({
    url: '/bookkeeping/expensesStats/collectFixedAssetBySupervise',
    method: 'post',
    data
  })
}

export function getStatisticsAsset(data) {
  return request({
    url: '/bookkeeping/statistics/getStatisticsAsset?region=' + data.region + '&year=' + data.year,
    method: 'post'
  })
}

// 获取省市区注册农场
export function registerDataStats(data) {
  return request({
    url: '/bookkeeping/registerUserStats/registerDataStats',
    method: 'post',
    data
  })
}

// 获取街道注册农场
export function registerDataDtl(data) {
  return request({
    url: '/bookkeeping/registerUserStats/registerDataDtl',
    method: 'post',
    data
  })
}

// 获取家庭农场
export function listFarmByStreet(data) {
  return request({
    url: '/bookkeeping/region/listFarmByStreet',
    method: 'post',
    data
  })
}

// 获取家庭农场
export function getManagementType(data) {
  return request({
    url: '/bookkeeping/base/getManagementType?id=' + data,
    method: 'get'
  })
}
